package com.swang.pms.common.util;


import com.swang.pms.model.entity.ManageUser;

/**
 * @ClassName: ThreadLocalUtil
 * @Description: TODO
 * @author: wangze@swang.com
 * @date: 2017/03/16 17:16
 */
public class ThreadLocalUtil {

    private static ThreadLocal<ManageUser> adminHolder = new ThreadLocal<ManageUser>();

    public static ManageUser getAdmin() {
        return adminHolder.get();
    }

    public static void setAdmin(ManageUser value) {
        adminHolder.set(value);
    }
    
    public static void removeAdmin() {
        adminHolder.remove();;
    }
    
}
